package com.woniuxy.impl;

import com.woniuxy.Person;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 01/17/0017 下午 12:02
 * @Component: 成都蜗牛学苑
 **/
public class Jap implements Person {
    String name;
    int age;
    Chinese chinese;
    List<Integer> money;
    Map<String,Object> friends;

    public Map<String, Object> getFriends() {
        return friends;
    }

    public void setFriends(Map<String, Object> friends) {
        this.friends = friends;
    }

    public List<Integer> getMoney() {
        return money;
    }

    public void setMoney(List<Integer> money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Chinese getChinese() {
        return chinese;
    }

    public void setChinese(Chinese chinese) {
        this.chinese = chinese;
    }

    public Jap() {
        System.out.println("调用了构造方法！");
    }

    public Jap(String name, int age, Chinese chinese) {
        this.name = name;
        this.age = age;
        this.chinese = chinese;
    }

    public Jap(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Jap(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Jap{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", chinese=" + chinese +
                ", money=" + money +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("我是日本人，我不吃东西！");
    }
}
